import request from '@/utils/request'
export default {

   //1 添加小节节
   saveVideo(video) {
    return request({
      url: `/eduservice/video/saveVideo`,
      method: 'post',
      data: video,
    })
  },
   //1 修改小节
   updateVideo(video) {
    return request({
      url: `/eduservice/video/updateVideo`,
      method: 'post',
      data: video
    })
  },
   //1 获取小节
   getVideo(videoId) {
    return request({
      url: `/eduservice/video/getVideo/${videoId}`,
      method: 'get',
    })
  },
   //1 删除小节
   deleteVideo(videoId) {
    return request({
      url: `/eduservice/video/deleteVideo/${videoId}`,
      method: 'delete',
    })
  },

   //1删除云端视频
   deleteAlyVideo(id) {
    return request({
      url: `/eduvod/video/deleteAlyVideo/${id}`,
      method: 'delete',
    })
  }
}
